home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Tool Chest / Testing & Debugging / Mac OS Development Toolkit / Automation Essentials 2.3.0 / Host Automation Folder / VU External Tool libs / Ivy Tool Declaration.vulib < prev    next >
Encoding:
Text File  |  1998-03-19  |  6.5 KB  |  236 lines  |  [TEXT/MPS ]

  1. (*
  2.         File:        Ivy Services for Virtual User 2.1 version 1.2
  3.  
  4.         Contains:    The Ivy 1.2 Virtual User tool declaration..
  5.  
  6.         Written by:    Rich Millet
  7.  
  8.         Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.  *)
  11.  
  12.  
  13. #
  14. #    Change history (most recent first):
  15. #        Version      Date        Who        Comments
  16. #        =======    ========    ===        =============
  17. #        1.4.0    02/03/97    JAS        Added 'vers' resources to library.
  18. #                                    These should always match tool version when tool is revved.
  19. #
  20. #
  21. #
  22.  
  23.                                 # NEVER make direct calls to the Ivy external tool.
  24. tool Ivy signature:'IVYX'        # Do NOT make direct external tool calls!
  25. begin                            # Use the ‘Tasks’ instead!
  26.  
  27. Service "IVINIT"                #--------------------------------------------------------------
  28. (
  29. )
  30. return    'Symbol';                # 
  31.  
  32.  
  33. Service "IVSETTOOLCMD"            #--------------------------------------------------------------
  34. (
  35.         'String',                # The tool's Gestalt selector.
  36.         'Integer',                # The number of the command that the tool will do.
  37.         'Symbol',                # The context parameter.
  38.         'Integer',                # The first parameter.
  39.         'Integer',                # The second parameter.
  40.         'Integer',                # The third parameter.
  41.         'Integer'                # The fourth parameter.
  42. )
  43. return    'Integer';
  44.  
  45.  
  46. Service "IVUNSETTOOLCMD"        #--------------------------------------------------------------
  47. (
  48.         'String'                # The tool's Gestalt selector.
  49. )
  50. return    'Integer';
  51.  
  52.  
  53. Service "IVSENDTOOLCMD"            #--------------------------------------------------------------
  54. (
  55.         'String',                # The tool's Gestalt selector.
  56.         'Integer',                # The number of the command that the tool will do.
  57.         'Integer',                # The first parameter.
  58.         'Integer',                # The second parameter.
  59.         'Integer',                # The third parameter.
  60.         'Integer'                # The fourth parameter.
  61. )
  62. return    'Integer';                # The result of the tool's command.
  63.  
  64.  
  65. Service "IVSETDIRECTORY"        #--------------------------------------------------------------
  66. (
  67.         'String'                # The full or partial pathname to set the default directory to
  68. )
  69. return    'String';                # The full default pathname.
  70.  
  71.  
  72. Service "IVGETDIRECTORY"        #--------------------------------------------------------------
  73. (
  74. )
  75. return    'String';                # The full default pathname.
  76.  
  77.  
  78. Service "IVDELETEIMAGE"            #--------------------------------------------------------------
  79. (
  80.         'String'                # The name of the file to delete.
  81. )
  82. return 'Symbol';
  83.  
  84. Service "IVCHECKSUMIMAGE"        #--------------------------------------------------------------
  85. (
  86.         'String',                # The file name.
  87.         'List',                    # The rectangular area of the screen to checksum.
  88.         'Symbol'                # A boolean indicating whether or not to create a file.
  89. )
  90. return 'Integer';                # The 32 bit integer checksum.
  91.  
  92.  
  93. Service "IVCREATEIMAGE"            #--------------------------------------------------------------
  94. (
  95.         'String',                # The name to give the image file.
  96.         'List',                    # The rectangular area of the screen to capture.
  97.         'List'                    # A list of rectangular areas to mask from the image.
  98. )
  99. return 'Integer';                # The 32 bit integer checksum of the image.
  100.  
  101.  
  102. Service "IVCOMPAREIMAGES"        #--------------------------------------------------------------
  103. (
  104.         'String',                # The name of the first image.
  105.         'String',                # The name of the second image.
  106.         'String',                # The name of the file that shows the differences.
  107.         'List'                    # A list of rectangular area to ignore during the comparison.
  108. )
  109. return    'Symbol';                # is true if the images matched, otherwise is false.
  110.  
  111.  
  112. Service    "IVGETIMAGEINFO"        #--------------------------------------------------------------
  113. (
  114.         'String'                # The name of the image file.
  115. )
  116. return    'List';                    # A list of image information.
  117.  
  118.  
  119. Service "IVWAITFORIMAGE"        #--------------------------------------------------------------
  120. (
  121.         'String',                # The name of the image file.
  122.         'List',                    # EXACT rectangular screen area where the image will appear.
  123.         'Integer'                # The percentage of targets CPU to use looking for the image.
  124. )
  125. return    'List';                    # { startTime, timeFount, timeIvyUsed, frequency }
  126.  
  127.  
  128. Service "IVSTARTWAITFORIMAGE"    #--------------------------------------------------------------
  129. (
  130.         'String',                # The name of the image file.
  131.         'List',                    # EXACT rectangular screen area where the image will appear.
  132.         'Integer'                # The percentage of targets CPU to use looking for the image.
  133. )
  134. return    'List';                    # { startTime, frequency }
  135.  
  136.  
  137. Service "IVGETTIMEFOUND"        #--------------------------------------------------------------
  138. (
  139.         'Integer'                # The process ID
  140. )
  141. return    'Integer';                # The time when Ivy found the image; 0 if not found.
  142.  
  143.  
  144. Service "IVSTOPWAITFORIMAGE"    #--------------------------------------------------------------
  145. (
  146.         'Integer'                # The process ID
  147. )
  148. return    'Integer';                # The total time Ivy used while looking for the image.
  149.  
  150.  
  151. Service "IVGETCURRENTTIME"        #--------------------------------------------------------------
  152. (
  153. )
  154. return    'Integer';                # The current time.
  155.  
  156.  
  157. Service    "IVSUBTRACTTIMES"        #--------------------------------------------------------------
  158. (
  159.         'undefined',            # The minuend.
  160.         'undefined'                # The subtrahend
  161. )
  162. return    'Integer';                # minuend - subtrahend
  163.  
  164.  
  165. Service "IVLOCATEIMAGE"            #--------------------------------------------------------------
  166. (
  167.         'String',                # The name of the image file.
  168.         'List',                    # The rectangular screen area to in which to search
  169.         'List'                    # The rectangle where the image was last found.
  170. )
  171. return    'List';                    # The location of the image.
  172.  
  173.  
  174. Service "IVLOCATESTRING"        #--------------------------------------------------------------
  175. (
  176.         'String',                # The string to look for.
  177.         'List',                    # The rectangular screen area to in which to search 
  178.         'String',                # The font name.
  179.         'Integer',                # The font size.
  180.         'Integer',                # The font style.
  181.         'List'                    # The last location of the image.
  182. )
  183. return    'List';                    # The location of the image.
  184.  
  185.  
  186. Service "INITIALIZE"            #--------------------------------------------------------------
  187. (
  188.         'undefined'
  189. );
  190.  
  191.  
  192. Service "CANCEL"                #--------------------------------------------------------------
  193. (
  194.         'String'
  195. );
  196.  
  197.  
  198. Service "GETTOOLSERVICES"        #--------------------------------------------------------------
  199. (
  200. )
  201. return    'List';
  202.  
  203.  
  204. Service "GETTOOLVERSION"        #--------------------------------------------------------------
  205. (
  206. )
  207. return    'List';
  208.  
  209.  
  210. Service "IVGETTOOLVERSION"        #--------------------------------------------------------------
  211. (
  212. )
  213. return    'Integer';
  214.  
  215.  
  216. Service "POLL"                    #--------------------------------------------------------------
  217. (
  218.         'String'
  219. )
  220. return    'String';
  221.  
  222.  
  223. Service "SERVICESUPPORTED"        #--------------------------------------------------------------
  224. (
  225.         'String'
  226. )
  227. return    'undefined';
  228.  
  229.  
  230. Service "QUIT"();
  231.                                                     # NEVER make direct calls to the Ivy external tool.
  232. end;                                                # Do NOT make direct external tool calls!
  233.                                                     # Use the ‘Tasks’ instead!
  234.  
  235.  
  236.